Repository navigation
Examples: on the published Obvs 7.0.2 packages - #214
Open
christopherread wants to merge 1 commit into
Open
christopherread wants to merge 1 commit into
christopherread wants to merge 1 commit into
Conversation
The client, the service and their messages now take Obvs and Obvs.ActiveMQ from NuGet instead of building them from the repo, so the Dockerfile builds from Examples/ alone, and the service waits for the broker to accept connections before it starts. Dependabot's examples entry no longer copies the root's ignores: it only carried them because the project references made it update the root's Directory.Packages.props. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The examples said they'd move to the published packages once v7 was on NuGet. It's at 7.0.2 now, so they have.
The projects
MessagesreferencesObvs7.0.2, andClientandService.ActiveMQreferenceObvs.ActiveMQ7.0.2, in place of the project references into the repo. The comments that said this was coming are gone.Examples/Directory.Packages.propsalready turns central package management off, so the versions are in the csproj files.Docker
Dockerfilebuilds fromExamples/alone, not the repo's root, since it doesn't need Obvs's source any more. It restores from the project files first, so editing the code doesn't download the packages again. The build context is 3.5 kB..dockerignoreleaves outbin/andobj/, so a local build's restore files don't reach the image.docker-compose.ymlbuilds from.. ActiveMQ now has a healthcheck and the service waits for it: started together, the service connected before the broker was listening, its receive subscriptions failed, and they never retried, so nothing it should have handled reached it.Dependabot
The
/Examplesentry no longer copies the root's ignores. It only had them (#212) because the project references made its group update the root'sDirectory.Packages.props. The examples now pin their own versions, so the entry updates only theirs. Dependabot reads this file frommaster, so it applies from the next release.Checks
dotnet build Examples/Obvs.Examples.sln: no warnings, resolvingObvsandObvs.ActiveMQ7.0.2 from NuGet.docker compose up -d --buildfromExamples/, thendotnet run --project Client: a command came back as the eventHELLO OBVS, and a request gotYou asked: is it working. Both apps logged the same trace ID for each.dependabot.ymlparses: the root NuGet entry has its ignores and the examples entry has none.It's build config and samples, so there's no new test.
🤖 Generated with Claude Code